package com.ywqf_api.enums;

public enum ToLoginEnum {
    FIND_SUCCESS(1,"查询成功"),
    PHONE_NULL(2,"手机号不能为空！"),
    PASSWORD_NULL(3,"密码不能为空！"),
    VERIFICATION_CODE_NULL(4,"验证码不能为空！"),
    STATUS_NULL(5,"登录类型不能为空！"),
    NO_REGISTERED(6,"您的手机号未注册过！"),
    FAILED(7,"登录类型不符"),
    PASSWORD_NOT_EQUAL(8,"密码不正确"),
    USER_DELETE(9,"该账号未启用"),
    VERIFICATION_CODE_NOT_EQUAL(10,"验证码不正确"),
    SUCCESS(1000,"成功！"),
    PHONE_REGISTER(11,"您的手机号已经注册过！"),
    REGIST_SUCCESS(1001,"注册成功！"),
    PASSWORD_ERROR_NULL(1,"输入密码错误或为空");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ToLoginEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
